<?php

namespace App\Http\Requests\AuthRequests;

use Illuminate\Foundation\Http\FormRequest;

class EmailCodeRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'email' => ['nullable', 'email'],
        ];
    }

    public function messages()
    {
        return [
            'email.email' => __('邮箱格式不正确'),
        ];
    }
}
